<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script type="text/javascript">
function open1()
	{
		window.open("schedule/calendar.jsp","일정관리","width=1000px,height=1000px");
	}

	function img_change(a)
    {
    	document.images[0].src=a
    }
</script> 

<header id="masthead" class="site-header" role="banner">
	<hgroup class="full-container">
	<!-- 로고 -->
		<a href="index.html" title="Theme Preview" rel="home" class="logo">
			<img src="/test/images/logo_off.png" width="181" height="40" alt="Theme Preview Logo" onmouseover="img_change('/test/images/logo_on.png')" onmouseout="img_change('/test/images/logo_off.png')">
		</a>
			<div class="support-text">
				Welcome to portfolio management site!
			</div>
	</hgroup>
<!-- 메뉴 시작 -->
	<nav role="navigation" class="site-navigation main-navigation primary use-sticky-menu">
	<div class="full-container">
		<div class="menu">
			<ul>
			<c:choose>
				<c:when test="${loginUser == null }">
					<li class="current_page_item">
						<a href="index.html"><span class="icon"></span>Home</a>
					</li>
					<!-- 로그인(로그인시 회원정보 세션저장) -->
					<li class="page_item page-item-2">
						<a href="moveLoginForm.html"><span class="icon"></span>Login</a>
					</li>
					<li class="page_item page-item-3">
						<a href="moveJoinForm.html"><span class="icon"></span>Join</a>
					</li>
				</c:when>
				<c:when test="${loginName == '관리자' }">
					<li class="current_page_item">
						<a href="index.html"><span class="icon"></span>Home</a>
					</li>
					<!-- 회사등록(관리자 페이지) -->
					<li class="page_item page-item-2">
						<a href="companyList.html"><span class="icon"></span>Company</a>
					</li>
					<!-- 로그아웃 -->
					<li class="page_item page-item-4">
						<a href="moveLogout.html"><span class="icon"></span>Logout</a>
					</li>
				</c:when>
				<c:otherwise>
					<li class="current_page_item">
						<a href="index.html"><span class="icon"></span>Home</a>
					</li>
					<!-- 포트폴리오 관리 페이지 -->
					<li class="page_item page-item-4">
						<a href="portFolio.html"><span class="icon"></span>Portfolio</a>
					</li>
					<!-- 일정관리 페이지 -->
					<li class="page_item page-item-5">
						<a href="schedule/calendar.jsp?id=${loginId }" target="_blank"><span class="icon"></span>Schedule</a>
					</li>
					<!-- 회원정보 페이지(회원정보는 로그인시 세션에 저장) -->
					<li class="page_item page-item-3">
						<a  href="moveMemberInfo.html"><span class="icon"></span>MemberInfo</a>
					</li>
					<!-- 로그아웃 -->
					<li class="page_item page-item-4">
						<a href="moveLogout.html"><span class="icon"></span>Logout</a>
					</li>
				</c:otherwise>
			</c:choose>
			</ul>
		</div>
	</div>
	</nav>
<!-- 메뉴 끝 -->
</header>